import UIKit

// 常量
class Const {
    // 关卡
    public static let LEVEL_COUNT = 15                      // 总数
    public static let LEVEL_FILE_EXTEND = "txt"             // 文件扩展名

    // 图片
    public static let IMAGE_FILE_NAME = "%d.png"            // 文件名

    // 定时器
    public static let TIMER_INIT = 0.5                      // 间隔

    // 游戏区域
    public static let GAME_BOARD_GRID_COUNT_H = 12          // 横向格数
    public static let GAME_BOARD_GRID_COUNT_V = 12          // 纵向格数
    public static let GAME_BOARD_COLOR = CGColor(red: 0 / WHITE,
        green: 128 / WHITE, blue: 0 / WHITE, alpha: 1.0)    // 背景色

    // 主视图
    public static let COLOR = UIColor(red: 250 / WHITE,
        green: 254 / WHITE, blue: 204 / WHITE, alpha: 1.0)  // 背景色

    // 控件 tag
    public static let TAG_BUTTON_UP = 1                     // "上移"按钮
    public static let TAG_BUTTON_DOWN = 2                   // "下移"按钮
    public static let TAG_BUTTON_LEFT = 3                   // "左移"按钮
    public static let TAG_BUTTON_RIGHT = 4                  // "右移"按钮
    public static let TAG_BUTTON_RESTART = 5                // "重玩本关"按钮
    public static let TAG_BUTTON_SELECT_LEVEL = 6           // "选关"按钮
    public static let TAG_BUTTON_UNDO = 7                   // "回退"按钮

    // 比例(IPhone)
    public static let SCALE_BUTTON_WIDTH_IPHONE = 3.5       // 按钮宽度与格的尺寸之比
    public static let SCALE_BUTTON_HEIGHT_IPHONE = 1.7      // 按钮高度与格的尺寸之比
    public static let SCALE_DIRECTION_SIZE_IPHONE = 2.0     // 方向按钮尺寸与格的尺寸之比
    public static let SCALE_FONT_SIZE_IPHONE = 0.7          // 字体尺寸与格的尺寸之比
    public static let SCALE_PADDING_IPHONE = 0.3            // 控件间距与格的尺寸之比

    // 比例(IPad)
    public static let SCALE_BUTTON_WIDTH_IPAD = 3.0         // 按钮宽度与格的尺寸之比
    public static let SCALE_BUTTON_HEIGHT_IPAD = 1.0        // 按钮高度与格的尺寸之比
    public static let SCALE_DIRECTION_SIZE_IPAD = 1.0       // 方向按钮尺寸与格的尺寸之比
    public static let SCALE_FONT_SIZE_IPAD = 0.5            // 字体尺寸与格的尺寸之比
    public static let SCALE_PADDING_IPAD = 0.2              // 控件间距与格的尺寸之比

    // 其它
    public static let WHITE = 255.0                         // 白色的 RGB 值
}
